﻿using GameProject.Service;
using GameProject.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;
using WebMatrix.WebData;


namespace GameProject.Controllers
{
	public class HomeController : Controller
	{
		private GameInstanceService gameService = new GameInstanceService();

        public ActionResult Index()
        {
            FrontPageViewModel frontPage = new FrontPageViewModel() { ActiveUsersSnakes = gameService.GetActiveUsersForGameType(1)/*, ActiveUsersConnect4 = gameService.GetActiveUsersForGameType(2)*/ };

            return View(frontPage);
        }

		public ActionResult About()
		{

			return View();
		}
	}
}
